package com.hh.utils;

import org.springframework.util.StringUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author Hanh
 * @date 2023/8/23 17:04s
 */
public class FileCheck {

    //检查文件的结尾是否是.xlsx
    public static Boolean checkFileEndForExcel2007(String fileName){
        String excelEnd = fileName.substring(fileName.length()-3);
        System.out.println(excelEnd);
        if (excelEnd.equals("lsx")){
            return true;
        }else {
            return false;
        }
    }
}
